/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

import business.UserService;
import javax.ejb.EJB;
import javax.ejb.Stateful;

/**
 *
 * @author Emergenza
 */
@Stateful
public class UserBean {

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
    @EJB
    UserService us;
    
    private String name;
    
        private String nome;

    public UserBean() {
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public UserBean(String nome) {
        this.nome = nome;
    }
    
    public void save(){
        System.out.println("lsdnws");
        us.setNome(nome);
        us.rispsta();
    }
}
